﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App.Model
{
    public class SysRole
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [VGridColumn(HeaderText = "编号")]
        public int Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnDataType = "VARCHAR(64)")]
        [VGridColumn(HeaderText = "名称")]
        public string RoleName { get; set; }

        /// <summary>
        /// 权限  || 分割
        /// </summary>
        [SugarColumn(ColumnDataType = "VARCHAR(512)")]
        [VGridColumn(HeaderText = "权限信息",Width = 300)]
        public string Authority { get; set; }

        /// <summary>
        /// 操作员
        /// </summary>
        [VGridColumn( Visible = false)] 
        public int AddUser { get; set; }

        /// <summary>
        /// 是否删除 0  1 删除
        /// </summary>
        [VGridColumn(Visible = false)] 
        public int IsDelete { get; set; }

        /// <summary>
        /// 是否禁用 0 启用 1 禁用
        /// </summary>
        [VGridColumn(Visible = false)] 
        public int Disable { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>

        [VGridColumn(Visible = false)]
        public DateTime AddTime { get; set; }

    }
}
